import {IdGenerator, SQLiteDataType} from "../../../types";

/**
 * 时间戳生成器
 */
export class TimestampGenerator implements IdGenerator {
  generate(): number {
    return Date.now();
  }

  fieldType(): SQLiteDataType {
    return 'INTEGER';
  }
}
